package com.iyunsir.act.service.impl;

import com.iyunsir.act.entity.Act;
import com.iyunsir.act.mapper.ActMapper;
import com.iyunsir.act.service.ActService;
import com.iyunsir.act.vo.ActQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ActServiceImpl implements ActService {
    @Resource
    private ActMapper actMapper;


    @Override
    public List<Act> getActList(ActQuery param) {
        return actMapper.getActList(param);
    }

    @Override
    public Long countActList(ActQuery param) {
        return actMapper.countActList(param);
    }

    @Override
    public void addAct(Act act) {
        actMapper.addAct(act);
    }

    @Override
    public void deleteActByIds(String ids) {
        actMapper.deleteActByIds(ids);
    }

    @Override
    public Act getActById(Integer id) {
        return actMapper.getActById(id);
    }

    @Override
    public void updateAct(Act act) {
        actMapper.updateAct(act);
    }
}
